Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle failed tails server issuance [Anoncreds] #3049

Merged
merged 5 commits into from
Jun 21, 2024

Conversation

jamshale
Copy link
Contributor

@jamshale jamshale commented Jun 19, 2024

  • Handles the scenario where the tails server isn't available during revocation rotation.
  • Fixes a bug with the openapi verse expected value for max_cred_num
  • Refactors the create_credential function
  • Removes some TODO's. Most with documentation that I think is good enough.

Keeps the revocation list in a failed state if the revocation registry has never been uploaded to the tails server. During issuance it will check for a failed state and try to upload and finish the revocation list. Issuance will not occur until a successful tails server and connection occurs.

Thought about keeping the revocation registry definition itself in a failed state but seemed to make sense to have it this way so the registry will still handle the full registry scenario.

…factor

Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Signed-off-by: jamshale <jamiehalebc@gmail.com>
Copy link

sonarcloud bot commented Jun 20, 2024

@jamshale jamshale marked this pull request as ready for review June 20, 2024 19:54
Copy link
Member

@ianco ianco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@jamshale jamshale merged commit a4ad003 into hyperledger:main Jun 21, 2024
9 checks passed
ff137 pushed a commit to ff137/aries-cloudagent-python that referenced this pull request Jun 25, 2024
* Fix anoncreds legacy indy revocation rotate without tails server / Refactor

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Refactor / More descriptive variable name

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Update some class docs / Remove un-needed TODO's

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Reformat with black

Signed-off-by: jamshale <jamiehalebc@gmail.com>

* Remove failed state

Signed-off-by: jamshale <jamiehalebc@gmail.com>

---------

Signed-off-by: jamshale <jamiehalebc@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants